home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
util
/
dtype
/
DT_Descriptors.lha
/
DT-Descriptors
/
Hook_Source
/
UUEncCheck.c
< prev
Wrap
C/C++ Source or Header
|
1997-07-02
|
471b
|
21 lines
#include <datatypes/datatypes.h>
BOOL __interrupt __asm DTHook (register __a0 struct DTHookContext * dthc)
{
BOOL retval = FALSE;
register ULONG i;
/* Make sure we have a buffer */
if (dthc->dthc_Buffer)
{
for (i = 0; (i < dthc->dthc_BufferLength-6) && !retval; i++)
{
UBYTE *p=dthc->dthc_Buffer+i;
if(*p++=='b'&&*p++=='e'&&*p++=='g'&&*p++=='i'&&*p++=='n'&&*p==' ')
if(i==0||dthc->dthc_Buffer[i-1]=='\n')
retval = TRUE;
}
}
return retval;
}